/**
 * @author: SEKin
 * @Date: 2025-01-17 17:05:38
 * @description:
 * @Last Modified time: 2025-01-17 17:05:38
 */

import { mergeConfig, defineConfig } from 'vite';
import baseConfig from '../../vite.config';
import { getProxyObj } from '../../env/envUtil';

export default defineConfig((env) => {
  const config = mergeConfig(
    baseConfig(env),
    defineConfig({
      server: {
        port: 8094,
        proxy: getProxyObj(['portal:90', 'users:90']),
      }
    })
  );
  return config;
});
